﻿@model PivotWebsite.Controllers.ListController

@{
    ViewBag.Title = "Image List Of " + Model.Name;
}

<h2>Image Listing for '@Model.Name'</h2>

<table>
    <tr>
        <th>ID</th>
        <th>Name</th>
        <th># of Facets</th>
        <th>Facets</th>
    </tr>

@foreach (var item in Model.Images) {
    <tr>
        <td>@item.Id</td>
        <td>@item.Name</td>
        <td>@item.Facets.Length</td>
        <td><table>
            <tr>
                <th>Name</th>
                <th>Value</th>
            </tr>
            @foreach (var f in item.Facets)
            {
                <tr>
                    <td>@f.Name</td>
                    <td>@Model.FormatFacet(f)</td>
                </tr>
            }
        </table>
        </td>
    </tr>
}

</table>
